﻿// ==UserScript==
// @name ISP_history
// @description Scroll history of ticket to bottom in techsupport in BILLmanager
// @author yumaa@ispsystem.com
// @include https://my.ispsystem.com/manager/*
// ==/UserScript==

(function() {
if (window.location.hostname != 'my.ispsystem.com') return;

	opera.addEventListener('BeforeEvent.DOMContentLoaded', function(e) {
		
		var lbls = $class('desc');
		if ( !lbls || !(lbls[0]) ) return;
		for (var i = 0; i < lbls.length; i++) {
			var lbl = lbls[i].getElementsByTagName('label');
			if ( !lbl || !(lbl[0]) ) return;
			lbl = lbl[0];
			if (lbl.htmlFor == 'createexpense_checkbox')
				lbl.htmlFor = 'createexpense';
		}
		
	}, true);
})();
